package com.ruoyi.inventory.domain;

import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;

/**
 * 库存盘点记录对象 t_stocktake
 * 
 * @author ruoyi
 * @date 2024-10-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Stocktake extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 所属仓库id */
    @Excel(name = "所属仓库id")
    private Long warehouseId;

    /** 物品编号 */
    @Excel(name = "物品编号")
    private String goodsNo;

    /** 盘点人id */
    @Excel(name = "盘点人id")
    private Long inspectorId;

    /** 盘点单编号 */
    @Excel(name = "盘点单编号")
    private String inventorySheetNo;

    /** 盘点前库存数量 */
    @Excel(name = "盘点前库存数量")
    private Long quantityBeforeInspection;

    /** 盘点后库存数量 */
    @Excel(name = "盘点后库存数量")
    private Long quantityAfterInspection;

    /** 差异数量 */
    @Excel(name = "差异数量")
    private Long difference;

    /** 盘点开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "盘点开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 盘点结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "盘点结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedTime;

    /**获取库存数量*/
    private String quantity;
    /**获取仓库名称*/
    private String warehouseName;
    /**获取物料名称*/
    private String materialName;
    /**获取产品名称*/
    private String productName;
    /**获取盘点人名*/
    private String userName;
}
